package com.suneast.suneaststore.bean.search;

import java.util.ArrayList;

public class SearchFilterBean {
    private String title;
    private boolean showTextAll;
    private boolean showingAll;


    public boolean isShowingAll() {
        return showingAll;
    }

    public static SearchFilterBean copy(SearchFilterBean sourceBean) {
        SearchFilterBean bean = new SearchFilterBean();
        bean.setTitle(sourceBean.getTitle());
        bean.setShowingAll(sourceBean.isShowingAll());
        bean.setShowTextAll(sourceBean.isShowTextAll());
        bean.setItemList(new ArrayList<>(sourceBean.getItemList()));
        return bean;
    }

    public void setShowingAll(boolean showingAll) {
        this.showingAll = showingAll;
    }

    public boolean isShowTextAll() {
        return showTextAll;
    }

    public void setShowTextAll(boolean showTextAll) {
        this.showTextAll = showTextAll;
    }

    private ArrayList<SearchFilterItemBean> itemList;

    public SearchFilterBean() {
        itemList = new ArrayList<>();
    }

    public SearchFilterBean(String title) {

        this.title = title;
        itemList = new ArrayList<>();

    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public ArrayList<SearchFilterItemBean> getItemList() {
        return itemList;
    }

    public void setItemList(ArrayList<SearchFilterItemBean> itemList) {
        this.itemList = itemList;
    }
}
